Skip to content

feat: read the SCTP transport of a peer connection - #608

Merged
devopvoid merged 2 commits into
mainfrom
feat/sctp-transport
Nov 26, 2026
Merged

devopvoid merged 2 commits into
mainfrom
feat/sctp-transport

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

Description

RTCPeerConnection.getSctpTransport() returns the SCTP transport of the data channels, as RTCSctpTransport: its state, getMaxMessageSize(), getMaxChannels() and the DTLS transport beneath it.

Motivation and Context

An application that sends large messages needs the size the remote peer accepts, since a larger message is refused.

Type of Change

  • New feature (feat)

Affected Modules

  • webrtc (Java API)
  • webrtc-jni (native code)
  • docs

Notes for Reviewers

The native transport has no proxy, and its observer methods must run on the network thread, so this PR has no state observer yet. Every getter goes through Information(), which calls over to that thread itself.

The data channel threshold PR adds a helper at the same place in TestDataChannelPair; whichever merges second keeps both methods.

…feat/sctp-transport

# Conflicts:
#	webrtc/src/test/java/dev/onvoid/webrtc/TestDataChannelPair.java
@devopvoid
devopvoid merged commit c5b04ce into main Nov 26, 2026
17 checks passed
@devopvoid
devopvoid deleted the feat/sctp-transport branch November 26, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant